package cn.edu.nju.software.zp13.client.assignment9UsingJAXB.assignment3Refactoring.bean;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;


@XmlType(name = "student",propOrder={"id","profile","cs"})
public class Student {
	private String id;
	private Profile profile;
	private CourseScore[] cs;

	public Student() {
	}
	
	@XmlElement(name="学号")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@XmlElement(name="personInfo",namespace="http://www.nju.edu.cn/schema")
	public Profile getProfile() {
		return profile;
	}

	public void setProfile(Profile profile) {
		this.profile = profile;
	}

	@XmlElementWrapper(name="课程成绩列表")
	@XmlElement(name="课程成绩")
	public CourseScore[] getCs() {
		return cs;
	}

	public void setCs(CourseScore[] cs) {
		this.cs = cs;
	}
}
